<?php get_header(); ?>
<div class="breadcrumbs">
    <?php if(function_exists('bcn_display'))
    {
        bcn_display();
    }?>
</div>
<div itemscope="" itemtype="http://schema.org/Article">
<h1 itemprop="name"><?php the_title()?></h1>
<div id="left">	

	<div itemprop="description"><?php echo $post->post_content?></div>  
	<br />
					              
<div class="cleaner"></div> 	

<div>
	
<!-- facebook plugin -->
	<div>
		<div style="float:left;"><g:plusone size="medium" annotation="none"></g:plusone></div>
		<div style="float:left;" class="fb-like" data-href="<?php the_permalink()?>" data-send="false" data-layout="button_count" data-width="10" data-show-faces="true"></div>
		<?php comments_template(); ?>
		<div style="clear:both;height:20px;"></div>
		
		
	</div>	
</div>	
<div class="cleaner"></div>

			
	<div style="clear:both;height:20px"></div>
	<!-- end facebook plugin -->
<?php related_posts();?>
<div style="clear:both;height:20px"></div>
	</div>						
	</div>	
		
	
	
	<script type="text/javascript">
//google
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
//facebook
//for fb
var accessToken=0;
var uid=0;
var selfurl='<?php the_permalink()?>';
var fbplugin={};
fbplugin.selfurl=selfurl;
fbplugin.saveUserDataUrl='';
  window.fbAsyncInit = function() {
      FB.init({
        appId      : '494778310568489', // App ID
        status     : true, // check login status
        cookie     : true, // enable cookies to allow the server to access the session
        xfbml      : true  // parse XFBML
      });  
      
      FB.getLoginStatus(function(response) {
  		  if (response.status === 'connected') {
  		    // the user is logged in and has authenticated your
  		    // app, and response.authResponse supplies
  		    // the user's ID, a valid access token, a signed
  		    // request, and the time the access token 
  		    // and signed request each expire
  		    fbplugin.uid = response.authResponse.userID;
  		  	fbplugin.accessToken = response.authResponse.accessToken;
  		    //call ajax show user config on this app
  		    
  		    
  		  	
  		  } else if (response.status === 'not_authorized') {
  		    // the user is logged in to Facebook, 
  		    // but has not authenticated your app
    		    document.getElementById('btnRead').style.display='block';
  		  } else {
  		    // the user isn't logged in to Facebook.
  		  }

  		  
  		 });      
    };

   
    (function(d){
        var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
        js = d.createElement('script'); js.id = id; js.async = true;
        js.src = "//connect.facebook.net/en_US/all.js";
        d.getElementsByTagName('head')[0].appendChild(js);
      }(document));
   
</script>
<?php get_footer(); ?>